﻿{include file="public/header" /}
<link rel="stylesheet" href="__STATIC__/admin/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" type="text/css">
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/h-ui/css/my.css" />
<title>栏目管理</title>
</head>

<body>
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 内容管理 <span class="c-gray en">&gt;</span> 栏目列表
		<a class="btn btn-secondary radius" href="add.html" style="line-height:1.6em;margin-left:500px;margin-top:-3px;" data-title="分类管理">添加栏目</a>
		<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px;float:right;" href="javascript:location.replace(location.href);" title="刷新">
			<i class="Hui-iconfont">&#xe68f;</i>
		</a>
	</nav>
	<div class="page-container">

		<div class="cl pd-5 bg-1 bk-gray mt-20" style="width:873px">
			<span class="l" style="text-align: right;">
			<!--<a href="javascript:;" onclick="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>-->
			<!--<a href="{:url('admin/tags/add')}"  class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 添加标签</a>-->
			<p><h4 style="margin-left: 260px;">下面的数据是显示在网站头部的导航信息</h4></p>
		   </span>
			<!--<span class="r" style="text-align: center;"><p style="text-align: left;">共有数据 条</p></span>-->
		</div>
		<form action="{:url('admin/cate/sort')}" method="post" style="width:884px">
			<table class="table table-border table-bordered table-bg" style="margin-left:0;width:884px">
				<thead>
					<tr style="width: 884px;">
						<th scope="col" colspan="9">栏目列表</th>
					</tr>
					<tr class="text-c">
						<!--<th width="25">
					<input type="checkbox" name="" value=""></th>-->
						<th width="40">ID</th>
						<th width="150">分类名</th>
						<th width="60">link</th>
				<!--<th width="150">邮箱</th>
				<th>角色</th>
				<th width="130">加入时间</th>-->
						<th width="40">排序</th>
						<th width="40">pid</th>
						<th width="100">操作</th>
					</tr>
				</thead>
				<tbody>
					{foreach name="data" item="v"}
					<tr class="text-c">
						<!--<td><input type="checkbox" value="1" name=""></td>-->
						<td>{$v['cid']}</td>
						<td>{$v['_cname']}</td>
						<td>{$v['link']}</td>
						<!--<td>13000000000</td>
				<td>admin@mail.com</td>
				<td>超级管理员</td>-->
						<td><input type="text" name="{$v['cid']}" id="{$v['cid']}" value="{$v['sort']}" style="width:50px" /></td>
						<td>
							{if condition="($v['pid'] == 0)"}
							<span style="color: red;">顶级栏目</span> {else /} {$v['pid']} {/if}
						</td>
						<td class="td-manage">
							<a class="" href="{:url('admin/cate/addson',['cid'=>$v['cid']])}">添加子类</a>|&nbsp;
							<a class="" href="{:url('admin/cate/edit',['cid'=>$v['cid']])}" title="编辑"><i class="Hui-iconfont">&#xe6df;</i></a>&nbsp;|&nbsp;
							<a class=" " href="javascript:if(confirm('确认删除吗？')) location='{:url('admin/cate/delete',['cid'=>$v['cid']])}'" title="删除"><i class="Hui-iconfont">&#xe609;</i></a>
						</td>
					</tr>
					{/foreach}

				</tbody>
			</table>
			<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;排序&nbsp;&nbsp;" style="margin-left: 505px;margin-top: 3px;">
		</form>
	</div>
	<!--<form action="{:url('admin/cate/sort')}" method="post" class="form form-horizontal" id="form-user-add">
		<table class="table table-border table-bordered">
			<thead class="text-c">
				<tr>
					<th style="width: 70px;">cid</th>
					<th>分类名</th>
					<th style="width: 70px;">排序</th>
					<th style="width: 70px;">pid</th>
					<th style="width: 250px;">操作</th>
				</tr>
			</thead>
			<tbody>
			{foreach name="data" item="v"}
				<tr>
					<td>{$v['cid']}</td>
					<td>{$v['_cname']}</td>
					<td>
						<input type="text" class="input-text" value="{$v['sort']}" placeholder="" id="user-name" name="{$v['cid']}" >
						
					</td>
					<td>{$v['pid']}</td>
					<td>
						<a class="" href="{:url('admin/cate/addson',['cid'=>$v['cid']])}">添加子类</a>|&nbsp;
						<a class=""	href="{:url('admin/cate/edit',['cid'=>$v['cid']])}" title="编辑"><i class="Hui-iconfont">&#xe6df;</i></a>&nbsp;|&nbsp;
					<a class=" " href="javascript:if(confirm('确认删除吗？')) location='{:url('admin/cate/delete',['cid'=>$v['cid']])}'" title="删除"><i class="Hui-iconfont">&#xe609;</i></a>
					</td>
					
				</tr>
			{/foreach}
			
			</tbody>
		</table>
		<input  class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;" style="margin-left: 418px;margin-top: 3px;">
	</form>-->
	{include file="public/footer" /}

	<!--请在下方写此页面业务相关的脚本-->
	<script type="text/javascript" src="__STATIC__/admin/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>

</body>

</html>